package com.huatai.paas.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.huatai.common.api.R;
import com.huatai.paas.dto.*;
import com.huatai.paas.dto.info.QueryProjectManagementInfo;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotNull;
import java.util.Map;

public interface ProjectManagementService {
	IPage<QueryProjectManagementInfo> queryProjectManageList(QueryProjectManagementDto dto);

	R addProjectManagement(CreateProjectManagementDto dto);

	R updateProjectManagement(UpdateProjectManagementDto dto);

	boolean deleteProjectManagement(long id);

	R publishProjectManagement(PublishProjectManagementDto dto);

	String uploadCoverUrl(MultipartFile file);

	boolean saveItemDisposition(CreateItemDispositionDto dto);

	boolean unPublishItemDisposition(PublishProjectManagementDto dto);

	QueryProjectManagementInfo queryItemDispositionInfo(Long id);

    Map<String, Object> queryFileList(Long itemId);

	R projectPublishStatus(Long itemId,String status);

	ProjectManagement getProjectById(Long projectId);

	void updateProject(ProjectManagement projectManagement);

	R projectWeather(String lat, String lng);

	R ueRequestBack(UeRequestBackDto dto);
}
